package com.simga.library.http;

import io.reactivex.disposables.Disposable;

public interface IRequestResult {

    void doOnSubscribe(int postCode, Object data, Disposable disposable);

    <T> void onNext(int postCode, T result, Object data);

    void onError(int postCode, Object data, Throwable e);

    void onHttpException(int postCode, Object data, Throwable e);

    void onIOException(int postCode, Object data, Throwable e);

    void otherException(int postCode, Object data, APIException e);

    void onCompleted(int postCode, Object data);

    void onLoginException();

    void onJsonParseException(int postCode, Object data, Throwable e);

    void onConnectException(int postCode, Object data, Throwable e);


}
